package com.woniuxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.controller.form.CommentCreatForm;
import com.woniuxy.controller.form.CommentStaticForm;
import com.woniuxy.controller.form.CommentStoreShowForm;
import com.woniuxy.controller.form.StoreReplyForm;
import com.woniuxy.dao.model.CommentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.service.dto.*;
import io.swagger.models.auth.In;

import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author psy
 * @since 2022-06-28
 */
public interface CommentInfoService extends IService<CommentInfo> {

    boolean addComment(CommentCreatForm commentCreatForm);

    Long getId(String orderNum);

    boolean replay(StoreReplyForm storeReplyForm);

    boolean delComment(Long id);

    Page<CommentStoreDto> getCommentByStoreId(Long id,Integer pageNum,Integer pageSize);

    StoreShowCommentDto getCommentsInStore(CommentStoreShowForm commentStoreShowForm);

    CommentByOrderNumDto getCommentByOrderNum(String orderNum);

    ScoreStoreDto getStoreScore(Long storeId);

    Page<CommentStoreDto> getCommentStoreNotReplay(Long id, Integer pageNum, Integer pageSize);

    CommentStaticDto commentStatic(CommentStaticForm commentStaticForm);

}
